
package com.cloud.punish;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableDiscoveryClient
@SpringBootApplication
@ServletComponentScan
@EnableCaching
@EnableFeignClients
@EnableHystrix
@EnableTransactionManagement
@MapperScan(basePackages = { 
		"com.cloud.punish.api.mapper", 
		"com.cloud.punish.tasklist.mapper",
		"com.cloud.punish.workflow.mapper" })
public class PunishApplication {
	public static void main(String[] args) {
		new SpringApplicationBuilder(PunishApplication.class).web(true).run(args);
	}
}
